package basic.reflect;

import basic.reflect.Season.WeekDay;

public class Test_Enum {
	public static void main(String[] args) {
		for (Season s : Season.values()) {
			System.out.println(s.ordinal());
		}
		for (WeekDay day : WeekDay.values()) {
			System.out.println(day.getDay());
		}
		WeekDay day = WeekDay.valueOf("Sun");
		System.out.println(day.getDay());
		WeekDay.printDay(5);
		
		Season.print(2, 6);
		System.out.println(WeekDay.Fri.getDay());
	}
}
